package rhc.taskSchedule.entity;

import java.util.Date;
import java.util.List;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**任务类型
 * @author lenovo
 *
 */
@Document(collection="distribute_task_type")
public class TaskType extends AbstractEntity{

	public static final String COLUMN_TASK_TYPE_NAME="task_type_name";
	public static final String COLUMN_EXECUTE_CLASS="execute_class";
	public static final String COLUMN_EXECUTE_JAR="execute_jar";
	public static final String COLUMN_CREATE_DATE="create_date";
	public static final String COLUMN_RUN_NODE_LABEL="run_node_label";
	
	/**
	 * 任务类型名
	 */
	@Field(value=COLUMN_TASK_TYPE_NAME)
	private String taskTypeName;
	
	/**
	 * 执行类路径
	 */
	@Field(value=COLUMN_EXECUTE_CLASS)
	private String executeClass;
	
	/**
	 * 执行jar包
	 */
	@Field(value=COLUMN_EXECUTE_JAR)
	private String executeJar;
	
	/**
	 * 创建时间
	 */
	@Field(value=COLUMN_CREATE_DATE)
	private Date createDate;
	
	/**
	 * 运行节点标记，当该节点上有相应标记时才会分发
	 */
	@Field(value=COLUMN_RUN_NODE_LABEL)
	private List<String> runNodeLabel;

	public String getTaskTypeName() {
		return taskTypeName;
	}

	public void setTaskTypeName(String taskTypeName) {
		this.taskTypeName = taskTypeName;
	}

	public String getExecuteClass() {
		return executeClass;
	}

	public void setExecuteClass(String executeClass) {
		this.executeClass = executeClass;
	}

	public String getExecuteJar() {
		return executeJar;
	}

	public void setExecuteJar(String executeJar) {
		this.executeJar = executeJar;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public List<String> getRunNodeLabel() {
		return runNodeLabel;
	}

	public void setRunNodeLabel(List<String> runNodeLabel) {
		this.runNodeLabel = runNodeLabel;
	}
	
}
